efi_loader: use bootargs as load options
authorHeinrich Schuchardt <[email protected]>
Wed, 18 Oct 2017 16:13:15 +0000 (18:13 +0200)
committerAlexander Graf <[email protected]>
Fri, 1 Dec 2017 12:22:55 +0000 (13:22 +0100)
Use environment variable bootargs used as load options
for bootefi payloads.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
cmd/bootefi.c

index 0915192bbb7368a9ee82db200c15e62df0f64d02..67855ba685072c9f3f5c6b7f6cb9e3cf05aa7400 100644 (file)
@@ -218,6 +218,8 @@ static efi_status_t do_bootefi_exec(void *efi, void *fdt,
                efi_install_configuration_table(&fdt_guid, NULL);
        }
 
+       /* Transfer environment variable bootargs as load options */
+       set_load_options(&loaded_image_info, "bootargs");
        /* Load the EFI payload */
        entry = efi_load_pe(efi, &loaded_image_info);
        if (!entry) {